{"ast":null,"code":"var _jsxFileName = \"/data/messenger.client/src/components/ContactsBlock/index.tsx\";\nimport React from 'react';\nimport { Contacts } from \"../index\";\nimport \"./ContactsBlock.scss\";\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nimport { Fragment as _Fragment } from \"react/jsx-dev-runtime\";\nconst ContactsBlock = props => {\n  return /*#__PURE__*/_jsxDEV(_Fragment, {\n    children: [props.addRequestList.items.length > 0 && /*#__PURE__*/_jsxDEV(\"div\", {\n      className: \"contacts__block\",\n      children: [/*#__PURE__*/_jsxDEV(\"div\", {\n        className: \"contacts__block-header\"\n      }, void 0, false, {\n        fileName: _jsxFileName,\n        lineNumber: 11,\n        columnNumber: 21\n      }, this), /*#__PURE__*/_jsxDEV(Contacts, {\n        contacts: props.addRequestList,\n        currentUser: props.currentUser\n      }, void 0, false, {\n        fileName: _jsxFileName,\n        lineNumber: 12,\n        columnNumber: 21\n      }, this)]\n    }, void 0, true, {\n      fileName: _jsxFileName,\n      lineNumber: 10,\n      columnNumber: 17\n    }, this), props.sentRequestList.items.length > 0 && /*#__PURE__*/_jsxDEV(\"div\", {\n      className: \"contacts__block\",\n      children: /*#__PURE__*/_jsxDEV(Contacts, {\n        contacts: props.sentRequestList,\n        currentUser: props.currentUser\n      }, void 0, false, {\n        fileName: _jsxFileName,\n        lineNumber: 20,\n        columnNumber: 21\n      }, this)\n    }, void 0, false, {\n      fileName: _jsxFileName,\n      lineNumber: 19,\n      columnNumber: 17\n    }, this), props.allAcceptedList.items.length > 0 && /*#__PURE__*/_jsxDEV(\"div\", {\n      className: \"contacts__block\",\n      children: /*#__PURE__*/_jsxDEV(Contacts, {\n        contacts: props.allAcceptedList,\n        currentUser: props.currentUser\n      }, void 0, false, {\n        fileName: _jsxFileName,\n        lineNumber: 28,\n        columnNumber: 21\n      }, this)\n    }, void 0, false, {\n      fileName: _jsxFileName,\n      lineNumber: 27,\n      columnNumber: 17\n    }, this)]\n  }, void 0, true);\n};\n_c = ContactsBlock;\nexport default ContactsBlock;\nvar _c;\n$RefreshReg$(_c, \"ContactsBlock\");","map":{"version":3,"names":["React","Contacts","ContactsBlock","props","addRequestList","items","length","currentUser","sentRequestList","allAcceptedList"],"sources":["/data/messenger.client/src/components/ContactsBlock/index.tsx"],"sourcesContent":["import React from 'react';\nimport {Contacts} from \"../index\";\nimport {ContactsBlockProps} from \"../../models/props/ContactsBlockProps\";\nimport \"./ContactsBlock.scss\";\nconst ContactsBlock: React.FC<ContactsBlockProps> = (props) => {\n\n    return (\n        <>\n            {(props.addRequestList.items.length > 0 &&\n                <div className=\"contacts__block\">\n                    <div className=\"contacts__block-header\"></div>\n                    <Contacts\n                        contacts={props.addRequestList}\n                        currentUser={props.currentUser}\n                    />\n                </div>\n            )}\n            {(props.sentRequestList.items.length > 0 &&\n                <div className=\"contacts__block\">\n                    <Contacts\n                        contacts={props.sentRequestList}\n                        currentUser={props.currentUser}\n                    />\n                </div>\n            )}\n            {(props.allAcceptedList.items.length > 0 &&\n                <div className=\"contacts__block\">\n                    <Contacts\n                        contacts={props.allAcceptedList}\n                        currentUser={props.currentUser}\n                    />\n                </div>\n            )}\n        </>\n    );\n}\n\nexport default ContactsBlock;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAAQC,QAAQ,QAAO,UAAU;AAEjC,OAAO,sBAAsB;AAAC;AAAA;AAC9B,MAAMC,aAA2C,GAAIC,KAAK,IAAK;EAE3D,oBACI;IAAA,WACMA,KAAK,CAACC,cAAc,CAACC,KAAK,CAACC,MAAM,GAAG,CAAC,iBACnC;MAAK,SAAS,EAAC,iBAAiB;MAAA,wBAC5B;QAAK,SAAS,EAAC;MAAwB;QAAA;QAAA;QAAA;MAAA,QAAO,eAC9C,QAAC,QAAQ;QACL,QAAQ,EAAEH,KAAK,CAACC,cAAe;QAC/B,WAAW,EAAED,KAAK,CAACI;MAAY;QAAA;QAAA;QAAA;MAAA,QACjC;IAAA;MAAA;MAAA;MAAA;IAAA,QACA,EAERJ,KAAK,CAACK,eAAe,CAACH,KAAK,CAACC,MAAM,GAAG,CAAC,iBACpC;MAAK,SAAS,EAAC,iBAAiB;MAAA,uBAC5B,QAAC,QAAQ;QACL,QAAQ,EAAEH,KAAK,CAACK,eAAgB;QAChC,WAAW,EAAEL,KAAK,CAACI;MAAY;QAAA;QAAA;QAAA;MAAA;IACjC;MAAA;MAAA;MAAA;IAAA,QACA,EAERJ,KAAK,CAACM,eAAe,CAACJ,KAAK,CAACC,MAAM,GAAG,CAAC,iBACpC;MAAK,SAAS,EAAC,iBAAiB;MAAA,uBAC5B,QAAC,QAAQ;QACL,QAAQ,EAAEH,KAAK,CAACM,eAAgB;QAChC,WAAW,EAAEN,KAAK,CAACI;MAAY;QAAA;QAAA;QAAA;MAAA;IACjC;MAAA;MAAA;MAAA;IAAA,QACA;EAAA,gBAEX;AAEX,CAAC;AAAA,KA/BKL,aAA2C;AAiCjD,eAAeA,aAAa;AAAC;AAAA"},"metadata":{},"sourceType":"module"}